package springstudy.test;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import springstudy.inter.UserDao;

public class UserStaticFactory {
	@Test
	public void getUserDaoImpl(){
		ApplicationContext ctx = new ClassPathXmlApplicationContext("bean.xml");
		UserDao userdao = (UserDao)ctx.getBean("userDaoImpl2");
		userdao.save();
	}
}
